<?php
$constants = array(
    'DATA_DIR' => ROOT_DIR . '/data',
    'TMP_DIR' => sys_get_temp_dir(),
    'SET_T_STR' => 0,
    'SET_T_INT' => 1,
    'SET_T_ENUM' => 2,
    'SET_T_BOOL' => 3,
    'SET_T_TXT' => 4,
    'SET_T_FILE' => 5,
    'SET_T_DIGITS' => 6,
    'LC_MESSAGES' => 6,
    'DEFAULT_TIMEZONE' => 8,
    'DEBUG_TEMPLETE' => false, // todo
    'WITH_REWRITE' => false,
    'PRINTER_FONTS' => '', // 打印字体
    'PHP_SELF' => (isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']),
    'LOG_TYPE' => 3,
    'DATABASE_OBJECT' => 'base_db_connections',
    'KVSTORE_STORAGE' => 'base_kvstore_filesystem',
    'CACHE_STORAGE' => 'base_cache_secache',
    'IMAGE_MAX_SIZE' => 1024 * 1024,
    'MAX_SPEC_VALUE_NUM' => 200, // 因为php限制最大post数量为1000（可以修改php.ini的max_input_vars项），当规格值数量超过一定量时，提交会超出这个值，所以做这个限制
    'KV_PREFIX' => 'defalut'

);

foreach ($constants as $k => $v) {
    if (! defined($k))
        define($k, $v);
}

